package com.hdw.med.bean.model;

import java.io.Serializable;

public class BaseSdItem implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long idSdItem;

	private String cd;

	private String na;

	private Long idFa;

	private String des;

	private Long idSd;

	private String cdSd;

	public Long getIdSdItem() {
	    return idSdItem;
	}

	public void setIdSdItem(Long idSdItem) {
	    this.idSdItem = idSdItem;
	}

	public String getCd() {
	    return cd;
	}

	public void setCd(String cd) {
	    this.cd = cd == null ? null : cd.trim();
	}

	public String getNa() {
	    return na;
	}

	public void setNa(String na) {
	    this.na = na == null ? null : na.trim();
	}

	public Long getIdFa() {
	    return idFa;
	}

	public void setIdFa(Long idFa) {
	    this.idFa = idFa;
	}

	public String getDes() {
	    return des;
	}

	public void setDes(String des) {
	    this.des = des == null ? null : des.trim();
	}

	public Long getIdSd() {
	    return idSd;
	}

	public void setIdSd(Long idSd) {
	    this.idSd = idSd;
	}

	public String getCdSd() {
	    return cdSd;
	}

	public void setCdSd(String cdSd) {
	    this.cdSd = cdSd == null ? null : cdSd.trim();
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    BaseSdItem other = (BaseSdItem) that;
	    return (this.getIdSdItem() == null ? other.getIdSdItem() == null : this.getIdSdItem().equals(other.getIdSdItem())) && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd())) && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa())) && (this.getIdFa() == null ? other.getIdFa() == null : this.getIdFa().equals(other.getIdFa())) && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes())) && (this.getIdSd() == null ? other.getIdSd() == null : this.getIdSd().equals(other.getIdSd())) && (this.getCdSd() == null ? other.getCdSd() == null : this.getCdSd().equals(other.getCdSd()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getIdSdItem() == null) ? 0 : getIdSdItem().hashCode());
	    result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
	    result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
	    result = prime * result + ((getIdFa() == null) ? 0 : getIdFa().hashCode());
	    result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
	    result = prime * result + ((getIdSd() == null) ? 0 : getIdSd().hashCode());
	    result = prime * result + ((getCdSd() == null) ? 0 : getCdSd().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", idSdItem=").append(idSdItem);
	    sb.append(", cd=").append(cd);
	    sb.append(", na=").append(na);
	    sb.append(", idFa=").append(idFa);
	    sb.append(", des=").append(des);
	    sb.append(", idSd=").append(idSd);
	    sb.append(", cdSd=").append(cdSd);
	    sb.append("]");
	    return sb.toString();
	}


}